﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Wicture.QPZS.EPC.Models
{
    public class ManualCatalog
    {
        public int id { get; set; }
        public string identity { get; set; }
        public string name { get; set; }
        public int parentId { get; set; }
        public int level { get; set; }
    }

    public class ManualCatalogDto : IComparable<ManualCatalogDto>
    {
        public int id { get; set; }
        public string identity { get; set; }
        public string name { get; set; }
        public List<ManualCatalogDto> subCatalogs { get; set; }
        public int CompareTo(ManualCatalogDto other)
        {
            return String.Compare(name, other.name, StringComparison.Ordinal);
        }
    }
}
